package ru.papergames.common.enums;

/**
 * @author Alexander Troshanin
 */
public enum BattleType {

    DUEL(1),
    GROUP(2),
    TRAINING(3),
    QUEST_WITH_GOODS(4),
    QUEST_NO_GOODS(5),
    ASSAULT(6),
    REAL_TIME(7);

    private int id;

    BattleType(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public static BattleType getBattleTypeById(int id) {
        switch (id) {
            case 1:
                return DUEL;
            case 2:
                return GROUP;
            case 3:
                return TRAINING;
            case 4:
                return QUEST_WITH_GOODS;
            case 5:
                return QUEST_NO_GOODS;
            case 6:
                return ASSAULT;
            case 7:
                return REAL_TIME;
        }
        return GROUP;
    }
}
